#ifndef _4G_H_
#define _4G_H_
#include "sys.h"
#include "protocol.h"



extern uint16_t Init_4G(void);
char* SendATCmd(char* cmdBuff, int timeout, char* expStr);

int PublishMsg(char* topic, char* msg);
int PublishMsg2(char* topic, char* msg,int len);
int PublishLiquidInfo(float val, char* topic);
int Subscribe(char* topic);

int LoginOnServer(char* topic,MqttMessageStruct *LogMessage,int *pLogResult);
void Open_4G_Device(void);
void Reset_4G_Device(void);
int Send_HeartBeat(char* topic,int *pHeardBeatResult);
int Processing_Message(char* topic);
int Send_Get_Deviceinfo_Req(char* topic,ParseMqttcmdStruct* pGetInfoResult);







#endif
